const schedule = require('node-schedule');

/**
 *
 * @param name 任务名称
 * @param corn 定时任务cron
 * @param callback 具体任务内容
 * @returns {Promise<void>}
 */
async function shceduleTest(name,corn,callback){
    schedule.scheduleJob(name,corn,callback)
}

shceduleTest('schedule','1-45 * * * * *',async _=>{
    console.log('schedule task start...')
})

